Skip to content

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Dec 24, 2025

Add an automatic (non-user selectable) Kconfig option to enable the "application variant" of the DP userspace implementation. Effectively it replaces (CONFIG_USERSPACE && !CONFIG_SOF_USERSPACE_PROXY) with a single new option.

Add an automatic (non-user selectable) Kconfig option to enable the
"application variant" of the DP userspace implementation. Effectively
it replaces (CONFIG_USERSPACE && !CONFIG_SOF_USERSPACE_PROXY) with a
single new option.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new Kconfig option SOF_USERSPACE_APPLICATION to simplify and improve readability of conditional compilation throughout the codebase. The new option effectively acts as a shorthand for the frequently used (CONFIG_USERSPACE && !CONFIG_SOF_USERSPACE_PROXY) condition pattern.

Key changes:

  • Added SOF_USERSPACE_APPLICATION Kconfig option that automatically evaluates to true when USERSPACE is enabled and SOF_USERSPACE_PROXY is disabled
  • Replaced all occurrences of the complex conditional pattern with the new simplified option
  • Updated build system logic in CMakeLists.txt to use the new option

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
zephyr/Kconfig Defines the new SOF_USERSPACE_APPLICATION config option with automatic default value
src/schedule/zephyr_dp_schedule.h Replaces complex conditionals with SOF_USERSPACE_APPLICATION for struct definitions and function declarations
src/schedule/zephyr_dp_schedule.c Updates preprocessor conditionals and scheduler operations table to use the new option
src/schedule/CMakeLists.txt Simplifies file inclusion logic by using the new config option
src/audio/module_adapter/module_adapter.c Replaces conditionals in trigger and free functions with the new simplified option
src/audio/module_adapter/module/generic.c Updates multiple module lifecycle functions (init, prepare, reset, free, bind, unbind) to use the new option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant